import React from 'react';
import {createFromIconfontCN} from "@ant-design/icons";
import request from "../../../service/request";
import {Button} from "antd";

const MyIcon = createFromIconfontCN({
  scriptUrl: "//at.alicdn.com/t/c/font_3684780_rurwis3payd.js"
});
const Home = () => {
  return (
    <div>
      home
      <Button
        type={"primary"}
        onClick={()=>{
          request({
            method: "GET",
            url: "/api/test",
            params: {
              username: "zhangsan",
              password: "z3"
            }
          }).then(res => {
            console.log(res)
          })
        }}
      >
        测试axios
      </Button>
      <MyIcon type={"icon-yonghuliebiao1"}/>
    </div>
  );
};

export default Home;